const { JJBanner } = require('../../models/ctcdb');

async function getList() {
  const list = await JJBanner.findAll({
    where: {
      status: 1
    },
    attributes: ['id', 'imageUrl', 'status'],
    raw: true
  });
  return list;
}

module.exports = {
  getList
};
